package com.wms.controller;

import com.wms.domain.Good;
import com.wms.service.GoodService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/goods")
@RequiredArgsConstructor
@RestController
public class GoodController {
    private final GoodService goodService;

    @GetMapping
    public List<Good> show() {
        List<Good> show = goodService.show();
        return show;
    }
}
